<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .bw {
            position: relative;
            width: 75px;
            height: 85px;
            border: 1px solid #ccc;
            margin: 100px auto;
            font-size: 12px;
            text-align: center;
            color: red;
        }

        .bw img {
            width: 60px;
            margin-top: 6px;
        }

        .bw i {
            position: absolute;
            top: -1px;
            left: -15px;
            width: 13px;
            height: 13px;
            border: 1px solid #ccc;
            line-height: 14px;
            /* 鼠标放上去会变成小手 */
            cursor: pointer;
        }
    </style>
</head>

<body>
    <div class="bw">
        广告二维码
        <img src="images/tao.png" alt="">
        <i class="close">x</i>
    </div>

    <script>
        const divObj = document.querySelector("div");
        const iObj = document.querySelector(".close");

        iObj.onclick = function () {
            divObj.style.display = "none";
        }
    </script>
</body>

</html>